package com.rd.student.jiaji.class3.sunguowei.day0802.CountPractice;

import java.util.Arrays;

public class Test3 {
    public static void main(String[] args) {
        int[] arr1={1,3,5,7,9};
        int[] arr2={2,4,6,8,10};
        int[] arr=new int[arr1.length+arr2.length];
        System.arraycopy(arr1,0,arr,0,arr1.length);
        System.arraycopy(arr2,0,arr,arr1.length,arr2.length);

        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
    }
}
